home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PACKET / CBBS60SO.ZIP / MBMAIL.H < prev    next >
Text File  |  1988-10-09  |  4KB  |  106 lines

  1. /*  MBMAIL.H - 10/09/88  */
  2.  
  3. #define mb_version 9
  4.  
  5. extern char orgbbs[7], orgdate[7], orgmsg[6], orgtime[5]; 
  6.  
  7. extern char *mbfile, *mbbfile, *msgdir;
  8. extern int mfl, mflb;
  9.  
  10. extern char  *ufwd, *bfwd;
  11. extern short ufwdm, ufwdn, bfwdm, bfwdn;
  12. extern short tstaleb, tstalen, tstaleu;
  13. extern char  wpcall[ln_call];
  14.  
  15. /*  The list of calls to translate.  */
  16.  
  17. typedef struct XBBS_S
  18. {
  19.   char from[ln_call];
  20.   char to[ln_call];
  21.   struct XBBS_S *next;
  22. } XBBS;
  23.  
  24. extern XBBS *xbbs;
  25.  
  26. /*  The list of calls to hold messages for.  */
  27.  
  28. typedef struct HOLD_S
  29. {
  30.   char call[ln_call];
  31.   struct HOLD_S *next;
  32. } HOLD;
  33.  
  34. extern HOLD *hold;
  35.  
  36. /*  Prompts associated with message commands.  */
  37.  
  38. #define num_mm 13
  39. extern  char *mm[num_mm];
  40.  
  41. /*
  42.  *  Message header record.
  43.  */
  44.  
  45. #define m_read   0x01  /* Message has been read by recipient    */
  46. #define m_fwd    0x02  /* Message has been forwarded            */
  47. #define m_kill   0x04  /* Message marked for killing            */
  48. #define m_busy   0x08  /* Message busy                          */
  49.  
  50. #define m_stale  0x20  /* Message unread and older than allowed */
  51. #define m_hold   0x40  /* Do not forward this message           */
  52. #define m_bull   0x80  /* This is a bulletin                    */
  53.  
  54. #define mhtitl 80      /* Length of title.                      */
  55. #define mmhsunu 12     /* Unused                                */
  56. #define mmesn 16       /* Number of calls in DIS list           */
  57.  
  58. typedef struct msg_hdr_s
  59. {
  60.   byte ext;           /* Header extension flag, or zero                  */
  61.   word rn;            /* Record number of this record                    */
  62.   word read;          /* # times the message has been read               */
  63.   word number;        /* Message number                                  */
  64.   word size;          /* Size in bytes                                   */
  65.   char type;          /* Message type                                    */
  66.   byte stat;          /* Message status, see bit definitions above       */
  67.   char to  [ln_call]; /* Destination call                                */
  68.   char from[ln_call]; /* Originator call                                 */
  69.   char bbs [ln_call]; /* Destination BBS, or distribution list           */
  70.   char date[ln_date]; /* Entry date                                      */
  71.   char time[ln_time]; /* Entry time                                      */
  72.   char bid[ln_bid];   /* Bulletin ID, if this is a bulletin              */
  73.   char title[mhtitl]; /* Title of message                                */
  74.  
  75.   char call[mmesn][ln_call]; /* Calls to send to                         */
  76.   byte flag[mmesn];          /* TRUE if need to send, FALSE if sent      */
  77.   byte count;                /* number of calls in list                  */
  78.  
  79.   char unu[mmhsunu];
  80. } MSG_HDR;
  81.  
  82.  
  83. /*
  84.  *  Mail file header record.
  85.  */
  86.  
  87. #define mfhsunu 231
  88.  
  89. typedef struct mail_hdr_s
  90. {
  91.   word next;          /* Next record to allocate         */
  92.   word first;         /* First message header record     */
  93.   word last;          /* Last message header record      */
  94.   word next_msg;      /* Next message number             */
  95.   word unt_msg;       /* next_msg at last untangle       */
  96.   byte version;       /* File format version number      */
  97.   word free;          /* Spare word for future use       */
  98.   word count;         /* Number of messages              */
  99.   char date[ln_date]; /* Date of last untangle           */
  100.   char time[ln_time]; /* Time of last untangle           */
  101.   char unu[mfhsunu];
  102. } MAIL_HDR;
  103.  
  104. extern MAIL_HDR *mfhs;
  105. extern MSG_HDR  *tmmhs;
  106.